package java_0306_MapAndSet;

public class Test {
//    public String name="abc";
    public static void main(String[] args){
        Object o=new Object(){
            public boolean equals(Object obj){
                return true;
            }
        };
        System.out.println(o.equals("Fred"));
//        Test test=new Test();
//        Test testB=new Test();
//        System.out.println(test.equals(testB)+","+test.name.equals(testB.name));
    }
}
class Student implements Comparable<Student>{
    public String name;
    public int score;

    @Override
    public int compareTo(Student o) {
        return this.score-o.score;
    }
}